🎖️GitЯра🎖️
Node / meshtastic / Meshtastic-Android / files / feature / node / src / commonMain / kotlin / org / meshtastic / feature / node / component / InfoCard.kt
Displaying Raw • Download
feature/node/src/commonMain/kotlin/org/meshtastic/feature/node/component/InfoCard.kt 4e15ef1c7f68f8c683fe8b7ff741a5167e154d2e (4e15ef1c) Text, 5.00 KB
T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.feature.node.component
Tff7b72import T7ee787androidx.compose.foundation.ExperimentalFoundationApi
Tff7b72import T7ee787androidx.compose.foundation.combinedClickable
Tff7b72import T7ee787androidx.compose.foundation.layout.Arrangement
Tff7b72import T7ee787androidx.compose.foundation.layout.Column
Tff7b72import T7ee787androidx.compose.foundation.layout.Row
Tff7b72import T7ee787androidx.compose.foundation.layout.defaultMinSize
Tff7b72import T7ee787androidx.compose.foundation.layout.padding
Tff7b72import T7ee787androidx.compose.foundation.layout.size
Tff7b72import T7ee787androidx.compose.material3.Card
Tff7b72import T7ee787androidx.compose.material3.CardDefaults
Tff7b72import T7ee787androidx.compose.material3.Icon
Tff7b72import T7ee787androidx.compose.material3.MaterialTheme
Tff7b72import T7ee787androidx.compose.material3.Text
Tff7b72import T7ee787androidx.compose.runtime.Composable
Tff7b72import T7ee787androidx.compose.runtime.rememberCoroutineScope
Tff7b72import T7ee787androidx.compose.ui.Alignment
Tff7b72import T7ee787androidx.compose.ui.Modifier
Tff7b72import T7ee787androidx.compose.ui.draw.clip
Tff7b72import T7ee787androidx.compose.ui.draw.rotate
Tff7b72import T7ee787androidx.compose.ui.graphics.vector.ImageVector
Tff7b72import T7ee787androidx.compose.ui.platform.Clipboard
Tff7b72import T7ee787androidx.compose.ui.platform.LocalClipboard
Tff7b72import T7ee787androidx.compose.ui.semantics.Role
Tff7b72import T7ee787androidx.compose.ui.semantics.contentDescription
Tff7b72import T7ee787androidx.compose.ui.semantics.semantics
Tff7b72import T7ee787androidx.compose.ui.unit.dp
Tff7b72import T7ee787kotlinx.coroutines.launch
Tff7b72import T7ee787org.jetbrains.compose.resources.DrawableResource
Tff7b72import T7ee787org.jetbrains.compose.resources.painterResource
Tff7b72import T7ee787org.jetbrains.compose.resources.stringResource
Tff7b72import T7ee787org.meshtastic.core.resources.Res
Tff7b72import T7ee787org.meshtastic.core.resources.a11y_label_value
Tff7b72import T7ee787org.meshtastic.core.resources.copy
Tff7b72import T7ee787org.meshtastic.core.ui.util.createClipEntry
Tff7b72import T7ee787org.meshtastic.core.ui.util.thenIf
Tf0883e@OptInTb4b4b4(Te6edf3ExperimentalFoundationApiTff7b72::Te6edf3classTb4b4b4)
Tf0883e@Composable
Tff7b72fun Td2a8ffInfoCardTb4b4b4(
Te6edf3textTb4b4b4: Tffa657StringTb4b4b4,
Te6edf3valueTb4b4b4: Tffa657StringTb4b4b4,
Te6edf3modifierTb4b4b4: Te6edf3Modifier Tff7b72= Te6edf3ModifierTb4b4b4,
Te6edf3iconTb4b4b4: Te6edf3ImageVector? Tff7b72= Tff7b72nullTb4b4b4,
Te6edf3iconResTb4b4b4: Te6edf3DrawableResource? Tff7b72= Tff7b72nullTb4b4b4,
Te6edf3rotateIconTb4b4b4: Tffa657Float Tff7b72= T79c0ff0fTb4b4b4,
Te6edf3valueColorTb4b4b4: Te6edf3androidxTb4b4b4.Te6edf3composeTb4b4b4.Te6edf3uiTb4b4b4.Te6edf3graphicsTb4b4b4.Te6edf3Color Tff7b72= Te6edf3MaterialThemeTb4b4b4.Te6edf3colorSchemeTb4b4b4.Te6edf3onSurfaceTb4b4b4,
Tb4b4b4) Tb4b4b4{
Tff7b72val Te6edf3clipboardTb4b4b4: Te6edf3Clipboard Tff7b72= Te6edf3LocalClipboardTb4b4b4.Te6edf3current
Tff7b72val Te6edf3coroutineScope Tff7b72= Te6edf3rememberCoroutineScopeTb4b4b4(Tb4b4b4)
Tff7b72val Te6edf3shape Tff7b72= Te6edf3MaterialThemeTb4b4b4.Te6edf3shapesTb4b4b4.Te6edf3medium
Tff7b72val Te6edf3copyLabel Tff7b72= Te6edf3stringResourceTb4b4b4(Te6edf3ResTb4b4b4.Te6edf3stringTb4b4b4.Te6edf3copyTb4b4b4)
Tff7b72val Te6edf3contentDescriptionText Tff7b72= Te6edf3stringResourceTb4b4b4(Te6edf3ResTb4b4b4.Te6edf3stringTb4b4b4.Te6edf3a11y_label_valueTb4b4b4, Te6edf3textTb4b4b4, Te6edf3valueTb4b4b4)
Te6edf3CardTb4b4b4(
Te6edf3modifier Tff7b72=
Te6edf3modifier
Tb4b4b4.Te6edf3defaultMinSizeTb4b4b4(Te6edf3minHeight Tff7b72= T79c0ff4T79c0ff8.Te6edf3dpTb4b4b4)
Tb4b4b4.Te6edf3clipTb4b4b4(Te6edf3shapeTb4b4b4)
Tb4b4b4.Te6edf3combinedClickableTb4b4b4(
Te6edf3onLongClick Tff7b72= Tb4b4b4{ Te6edf3coroutineScopeTb4b4b4.Te6edf3launch Tb4b4b4{ Te6edf3clipboardTb4b4b4.Te6edf3setClipEntryTb4b4b4(Te6edf3createClipEntryTb4b4b4(Te6edf3valueTb4b4b4, Te6edf3textTb4b4b4)Tb4b4b4) Tb4b4b4} Tb4b4b4}Tb4b4b4,
Te6edf3onLongClickLabel Tff7b72= Te6edf3copyLabelTb4b4b4,
Te6edf3onClick Tff7b72= Tb4b4b4{Tb4b4b4}Tb4b4b4,
Te6edf3role Tff7b72= Te6edf3RoleTb4b4b4.Te6edf3ButtonTb4b4b4,
Tb4b4b4)
Tb4b4b4.Te6edf3semanticsTb4b4b4(Te6edf3mergeDescendants Tff7b72= Tff7b72trueTb4b4b4) Tb4b4b4{ Te6edf3contentDescription Tff7b72= Te6edf3contentDescriptionText Tb4b4b4}Tb4b4b4,
Te6edf3shape Tff7b72= Te6edf3shapeTb4b4b4,
Te6edf3colors Tff7b72= Te6edf3CardDefaultsTb4b4b4.Te6edf3cardColorsTb4b4b4(Te6edf3containerColor Tff7b72= Te6edf3MaterialThemeTb4b4b4.Te6edf3colorSchemeTb4b4b4.Te6edf3surfaceContainerLowTb4b4b4)Tb4b4b4,
Tb4b4b4) Tb4b4b4{
Te6edf3RowTb4b4b4(
Te6edf3modifier Tff7b72= Te6edf3ModifierTb4b4b4.Te6edf3paddingTb4b4b4(Te6edf3vertical Tff7b72= T79c0ff8.Te6edf3dpTb4b4b4, Te6edf3horizontal Tff7b72= T79c0ff1T79c0ff2.Te6edf3dpTb4b4b4)Tb4b4b4,
Te6edf3horizontalArrangement Tff7b72= Te6edf3ArrangementTb4b4b4.Te6edf3spacedByTb4b4b4(T79c0ff8.Te6edf3dpTb4b4b4)Tb4b4b4,
Te6edf3verticalAlignment Tff7b72= Te6edf3AlignmentTb4b4b4.Te6edf3CenterVerticallyTb4b4b4,
Tb4b4b4) Tb4b4b4{
Tff7b72val Te6edf3iconModifier Tff7b72= Te6edf3ModifierTb4b4b4.Te6edf3sizeTb4b4b4(T79c0ff2T79c0ff0.Te6edf3dpTb4b4b4)Tb4b4b4.Te6edf3thenIfTb4b4b4(Te6edf3rotateIcon Tff7b72!Tff7b72= T79c0ff0fTb4b4b4) Tb4b4b4{ Te6edf3rotateTb4b4b4(Te6edf3rotateIconTb4b4b4) Tb4b4b4}
Tff7b72val Te6edf3iconTint Tff7b72= Te6edf3MaterialThemeTb4b4b4.Te6edf3colorSchemeTb4b4b4.Te6edf3primary
Tff7b72if Tb4b4b4(Te6edf3icon Tff7b72!Tff7b72= Tff7b72nullTb4b4b4) Tb4b4b4{
Te6edf3IconTb4b4b4(Te6edf3imageVector Tff7b72= Te6edf3iconTb4b4b4, Te6edf3contentDescription Tff7b72= Tff7b72nullTb4b4b4, Te6edf3modifier Tff7b72= Te6edf3iconModifierTb4b4b4, Te6edf3tint Tff7b72= Te6edf3iconTintTb4b4b4)
Tb4b4b4}
Tff7b72if Tb4b4b4(Te6edf3iconRes Tff7b72!Tff7b72= Tff7b72nullTb4b4b4) Tb4b4b4{
Te6edf3IconTb4b4b4(
Te6edf3painter Tff7b72= Te6edf3painterResourceTb4b4b4(Te6edf3iconResTb4b4b4)Tb4b4b4,
Te6edf3contentDescription Tff7b72= Tff7b72nullTb4b4b4,
Te6edf3modifier Tff7b72= Te6edf3iconModifierTb4b4b4,
Te6edf3tint Tff7b72= Te6edf3iconTintTb4b4b4,
Tb4b4b4)
Tb4b4b4}
Te6edf3Column Tb4b4b4{
Te6edf3TextTb4b4b4(
Te6edf3textTb4b4b4,
Te6edf3style Tff7b72= Te6edf3MaterialThemeTb4b4b4.Te6edf3typographyTb4b4b4.Te6edf3labelSmallTb4b4b4,
Te6edf3color Tff7b72= Te6edf3MaterialThemeTb4b4b4.Te6edf3colorSchemeTb4b4b4.Te6edf3onSurfaceVariantTb4b4b4,
Tb4b4b4)
Te6edf3TextTb4b4b4(Te6edf3valueTb4b4b4, Te6edf3style Tff7b72= Te6edf3MaterialThemeTb4b4b4.Te6edf3typographyTb4b4b4.Te6edf3labelLargeTb4b4b4, Te6edf3color Tff7b72= Te6edf3valueColorTb4b4b4)
Tb4b4b4}
Tb4b4b4}
Tb4b4b4}
Tb4b4b4}
Tf0883e@Composable
Tff7b72internal Tff7b72fun Td2a8ffDrawableInfoCardTb4b4b4(Te6edf3iconResTb4b4b4: Te6edf3DrawableResourceTb4b4b4, Te6edf3textTb4b4b4: Tffa657StringTb4b4b4, Te6edf3valueTb4b4b4: Tffa657StringTb4b4b4, Te6edf3rotateIconTb4b4b4: Tffa657Float Tff7b72= T79c0ff0fTb4b4b4) Tb4b4b4{
Te6edf3InfoCardTb4b4b4(Te6edf3iconRes Tff7b72= Te6edf3iconResTb4b4b4, Te6edf3text Tff7b72= Te6edf3textTb4b4b4, Te6edf3value Tff7b72= Te6edf3valueTb4b4b4, Te6edf3rotateIcon Tff7b72= Te6edf3rotateIconTb4b4b4)
Tb4b4b4}
Served by rngit 1.5.0 - Generated in 0.09s